package ${package}.service.${moduleName};

import cn.gooday.jsh.service.common.dto.RestControllerResult;
import cn.gooday.jsh.service.common.mybatis.YlhPageInfo;
import ${package}.dto.api.${moduleName}.Get${ClassName}ParamsDto;
import ${package}.dto.api.${moduleName}.Get${ClassName}ResultDto;
import ${package}.dto.api.${moduleName}.Save${ClassName}ParamsDto;

/**
 * ${moduleName}.
 *
 *  @author ${author}.
 *  @since ${datetime}
 */

public interface ${ClassName}Service {

  YlhPageInfo<Get${ClassName}ResultDto>
          query${ClassName}ListByCondition(
          Get${ClassName}ParamsDto paramsDto);

  Get${ClassName}ResultDto get${ClassName}ById(Integer id);

  RestControllerResult
      <Get${ClassName}ResultDto>
            add${ClassName}(
            Save${ClassName}ParamsDto paramsDto);

  RestControllerResult
      <Get${ClassName}ResultDto>
              update${ClassName}(
              Save${ClassName}ParamsDto paramsDto);

  RestControllerResult<Boolean> delete${ClassName}ById(Integer id);

  Integer change${ClassName}StatusById(Integer id, Integer status);
}
